package com.cskaoyan.mapper;

import com.cskaoyan.model.User;
import com.cskaoyan.model.UserExample;
import com.cskaoyan.model.vo.GrowingUserVO;
import com.cskaoyan.model.vo.UserLoginVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserMapper {

    List<User> select(@Param("sort") String sort, @Param("order") String order, @Param("username") String username,@Param("mobile")String mobile);
    long countByExample(UserExample example);

    int deleteByExample(UserExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(User record);

    int insertSelective(User record);

    List<User> selectByExample(UserExample example);

    User selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") User record, @Param("example") UserExample example);

    int updateByExample(@Param("record") User record, @Param("example") UserExample example);

    int updateByPrimaryKeySelective(User record);

    int updateByPrimaryKey(User record);

    List<User> select1(String sort, String order, String username, String mobile);

    List<GrowingUserVO> selectUsersGroupByDay();

    String selectPasswordByUsername(String username);

    UserLoginVO selectUserLoginInfoByUsername(String username);

    Integer selectUserIdByUsername(String username);

    Integer selectUserId(@Param("username") String username);

}
